<button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#import-excel">导入Excel</button>
<div class="modal fade" id="import-excel" tabindex="-1" role="dialog" aria-labelledby="import-excel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <form class="form-inline" role="form" enctype="multipart/form-data">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">上传Excel文件(必须未xlsx格式)</h4>
            </div>
            <div class="modal-body">
                    <div class="form-group">
                        <label class="sr-only" for="file">文件输入</label>
                        <input type="file" name="import-file" id="import-file" required>
                    </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-default" id="import-submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
            </form>
        </div>
    </div>
</div>